package com.hy.mydesktop.client.component.meta;

import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.widget.Component;
import com.extjs.gxt.ui.client.widget.Layout;

/**
 * 
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-8-29；时间：下午03:14:51</li>
 * <li>类型名称：WindowModel</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
public class WindowModel {

	/**
	 * 宽
	 */
	private int width;
	
	/**
	 * 初始化宽度
	 */
	private int initialWidth;
	
	/**
	 * 最小化宽度
	 */
	private int minWidth;
	
	/**
	 * 高
	 */
	private int hight;
	
	/**
	 * 最小高度
	 */
	private int minHight;
	
	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 模式
	 */
	private boolean modal;
	
	/**
	 * 是否允许拖拽
	 */
	private boolean resizable;

	/**
	 * 最大化按钮
	 */
	private boolean maxminzable;

	/**
	 * 最小化按钮
	 */
	private boolean minmizable;

	/**
	 * 滚动条
	 */
	private Scroll scrollMode;
	
	/**
	 * 布局
	 */
	private Layout layout;
	
	/**
	 * 最顶端控件
	 */
	private Component topComponent;
	
	/**
	 * 关闭按钮
	 */
	private boolean closable;
	
	

	public boolean isClosable() {
    	return closable;
    }

	public void setClosable(boolean closable) {
    	this.closable = closable;
    }

	public Component getTopComponent() {
    	return topComponent;
    }

	public void setTopComponent(Component topComponent) {
    	this.topComponent = topComponent;
    }

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getInitialWidth() {
		return initialWidth;
	}

	public void setInitialWidth(int initialWidth) {
		this.initialWidth = initialWidth;
	}

	public int getMinWidth() {
		return minWidth;
	}

	public void setMinWidth(int minWidth) {
		this.minWidth = minWidth;
	}

	public int getHight() {
		return hight;
	}

	public void setHight(int hight) {
		this.hight = hight;
	}

	public int getMinHight() {
		return minHight;
	}

	public void setMinHight(int minHight) {
		this.minHight = minHight;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public boolean isModal() {
		return modal;
	}

	public void setModal(boolean modal) {
		this.modal = modal;
	}

	public boolean isResizable() {
		return resizable;
	}

	public void setResizable(boolean resizable) {
		this.resizable = resizable;
	}

	public boolean isMaxminzable() {
		return maxminzable;
	}

	public void setMaxminzable(boolean maxminzable) {
		this.maxminzable = maxminzable;
	}

	public boolean isMinmizable() {
		return minmizable;
	}

	public void setMinmizable(boolean minmizable) {
		this.minmizable = minmizable;
	}

	public Scroll getScrollMode() {
		return scrollMode;
	}

	public void setScrollMode(Scroll scrollMode) {
		this.scrollMode = scrollMode;
	}

	public Layout getLayout() {
		return layout;
	}

	public void setLayout(Layout layout) {
		this.layout = layout;
	}
	
	
}
